export default {
  bind(el, binding) {
    // console.log(el, binding);
    const _ops = binding.value,
          _c = el.getElementsByClassName(_ops.className);
    // console.log(_c);
    _c[_ops.curIdx].className += ` ${_ops.currentClassName}`;
  },
  update(el, binding) {
    // console.log(el, binding);
    const _ops = binding.value,
          _olderOps = binding.oldValue,
          _c = el.getElementsByClassName(_ops.className);
    console.log(_olderOps);

    _c[_ops.curIdx].className += ` ${_ops.currentClassName}`

    _c[_olderOps.curIdx].className = `${_olderOps.className}`
  },
};
